@extends('admin.layout.main')
@section('content')
    <div class="layui-tab layui-tab-brief" lay-filter="demoTitle">
        <ul class="layui-tab-title site-demo-title">
            <li><a href="/admin/notices">通知管理</a></li>
            <li class="layui-this">
                <a href="javascript:location.reload()">
                    新增
                </a>
            </li>
        </ul>
        <div class="layui-body layui-tab-content site-demo site-demo-body">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>
                    新增通知
                </legend>
            </fieldset>
            <form class="layui-form" action="/admin/notices" method="post" lay-filter="data-form">
                {{csrf_field()}}
                <div class="layui-form-item">
                    <label class="layui-form-label">通知标题</label>
                    <div class="layui-input-block">
                        <input type="text" name="title" lay-verify="required" autocomplete="off"
                               placeholder="请输入通知标题" class="layui-input" value="">
                    </div>

                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">通知内容</label>
                    <div class="layui-input-block">
                        <textarea name="content" placeholder="请输入通知内容" lay-verify="required"
                                  class="layui-textarea"></textarea>
                    </div>
                </div>
                @include('admin.layout.error')
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="data-form">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection